.layout {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #909090;
}

/* 顶部导航 */
.top-main-nav {
    background-color: #3472D7;
    height: 79px;
    vertical-align: middle;
    width: 100%;
    display: flex;
    color: white;
}

.top-main-nav .left {
    display: flex;
    align-items: center;
    flex: 1;
    padding-left: 20px;
    font-weight: bolder;
}

.top-main-nav .left .logo {
    width: 150px;
    /* height: 50px; */
}

.top-main-nav .left .title {
    margin-left: 10px;
    font-size: 24px;
    letter-spacing: 1px;
    color: var(--g-header-color);
}


.top-main-nav .left .item-list { 
    flex: 1;
    display: flex;
    flex-direction: row;
    margin: 0 30px;
    padding: 0 20px;
    overflow-x: auto;
}

.top-main-nav .left .item-list .item { 
    cursor: pointer;
    font-size: 14px; 
    color: white; 
    height: 60px;
    width: 69px;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    margin-bottom: 5px;
    border-radius: 5px;
    position: relative;
    margin-left: 5px;
}

.top-main-nav .left .item-list .item i, 
.top-main-nav .left .item-list .item span {
    display: block;
    margin: 0 auto;
}

.top-main-nav .left .item-list .item:hover,
.top-main-nav .left .item-list .item.active { 
    background-color: #334067;
}


.top-main-nav .right {
    /* width: 300px; */
}

.top-main-nav .right .info {
    width: 250px;
    line-height: 79px;
    height: 79px;
    text-align: right;
    vertical-align: middle;
    padding: 0px 25px;
}

/* .top-main-nav .right .info>span {
    width: 34px;
} */

.top-main-nav .right .info .bell {
    cursor: pointer;
}

.top-main-nav .right .info .el-icon {
    color: white;
}

.top-main-nav .right .info .item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    width: 34px;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    line-height: 26px;
}

.top-main-nav .right .info .bell .item {
    /* height: 21px;
    position: relative; */
    height: 21px;
    position: relative;
    width: 25px;
}

.top-main-nav .right .info .bell .item .el-icon {
    /* position: absolute;
    right: 0px;
    top: 0px; */
}

.top-main-nav .right .info span {
    /* padding: 0px 7px; */
    color: white;
}

.top-main-nav .right .info .name {
    height: 24px;
}

.top-main-nav .right .info .fullscreen {
    cursor: pointer;
}


/* 左侧主导航 */
.left-main {
  width: 89px;
  display: flex;
  flex-direction: column;
  color: var(--g-main-sidebar-menu-color);
  text-align: center;
  background-color: #222b45;
}

.left-main .logo { width: 30px; height: 30px; margin: 10px auto; }
.left-main .item-list { flex: 1; flex-direction: column; overflow-y: auto; }
.left-main .item-list .item { 
    font-size: 14px; 
    color: white; 
    height: 60px;
    width: 69px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    margin-bottom: 5px;
    cursor: pointer;
    border-radius: 5px;
    position: relative;
}

.left-main .item-list .item i, 
.left-main .item-list .item span {
    display: block;
    margin: 0 auto;
}

.left-main .item-list .item:hover,
.left-main .item-list .item.active { 
    background-color: #334067;
}

.left-main .item-list .item.active::before { 
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
    border-bottom-left-radius: 50%;
    background-color: var(--g-main-sidebar-menu-active-bg);
    box-shadow: 0 0 0 1px var(--g-main-sidebar-bg);
    transition: all .3s;
    position: absolute;
    transform: translate(-50%);
}

/* 左侧次导航 */
.left-second.left {
    width: 70px;
}

.left-second {
    height: 100%;
    width: 220px;
    background-color: var(--g-sub-sidebar-bg);
    /* box-shadow: 10px 0 10px -10px var(--g-box-shadow-color); */
    transition: background-color .3s,var(--el-transition-box-shadow),left .3s,width .3s;
    box-shadow: 1px 0px 10px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.left-second .web-name {
    height: 50px;
    line-height: 50px; 
    vertical-align: middle;
    text-align: center;
    font-weight: bolder;
}

.left-second .scrollbar {
    height: calc(100vh - 50px);
}

.left-second .scrollbar .el-scrollbar__view {
    height: 100%;
}

.el-menu .menu-title {
    padding-left: 15px;
}

.el-menu .last-child {
    border-left: 3px solid #F5F5F5;
}

.el-menu .no-child {
    border-left: none;
}


/* 内容区域 */
.right-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    background-color: #F2F3F5;
}
/* Tags */
.right-content .tags-box {
    position: relative;
    height: var(--g-tabbar-height);
    background-color: var(--g-tabbar-bg);
    transition: background-color .3s;
    display: flex;
}

.right-content .more-action {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-content .tags-box .tags-scrollbar {
    flex: 1;
    width: 100%;
    padding: 0px 10px;
    height: 100%;
}

.right-content .tags-box .tags {
    display: flex;
}

.right-content .tags-box .tags .el-scrollbar__view {
    display: flex;
    height: 100%;
    border: none;
}

.right-content .tags-box .tag {
    background-color: #FFFFFF;
    color: black;
    height: calc(100% - 10px);
    margin-top: 10px;
    width: 160px;
    border: none;
    border-radius: 10px 10px 0px 0px;
    position: relative;
    display: flex;
    justify-content: space-around;
    cursor: pointer;
}

.right-content .tags-box .tag .el-icon {
    line-height: 1;
    vertical-align: middle;
    padding: 2px;
}


.right-content .tags-box .tag.el-tag--info {
    background-color: #F2F3F5;
}

.right-content .tags-box .tag .el-tag__close {
    color: black !important;
}

.right-content .tags-box .tag .left-root {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.right-content .tags-box .tag .right-root {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* tag下拉弹窗样式 */
.tag-action-popper {
    padding: 15px !important;
    min-width: 200px;
}

.tag-action-popper .actions {
    width: 100%;
    display: flex;
}

.tag-action-popper .tag {
    width: 100%;
    display: flex;
    justify-content: space-around;
    cursor: pointer;
    align-items: center;
    height: 32px;
    line-height: 1;
    vertical-align: middle;
}

.tag-action-popper .tag .el-tag__content {
    display: flex;
}

.tag-action-popper .actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    /* margin-right: 10px; */
    border-radius: 5px;
    cursor: pointer;
    outline: none;
    border: none;
    background-color: var(--el-fill-color);
    transition: var(--el-transition-color),background-color .3s;
    color: black;
}

.tag-action-popper .actions button:hover {
    color: var(--el-color-primary);
    background-color: var(--el-fill-color-light);
}



/* 当前选中菜单 + 个人信息 */
.right-content .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--g-toolbar-height);
    background-color: var(--g-toolbar-bg);
    box-shadow: 0 0 1px 0 var(--el-border-color);
    transition: background-color .3s,var(--el-transition-box-shadow);
}

.right-content .navbar .left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 10px;
}

.right-content .navbar .left .el-dropdown {
    margin-left: 5px;
}

.right-content .navbar .left .el-dropdown.item {
    margin-left: 10px;
}

.right-content .navbar .left .el-breadcrumb {
    margin-left: 10px;
    white-space: nowrap;
    line-height: normal;
    vertical-align: middle;
    display: flex;
    align-items: center;
}

.right-content .navbar .left .el-breadcrumb .el-breadcrumb__item {
    display: inline-block;
    float: none;
}

.right-content .navbar .left .el-breadcrumb .el-breadcrumb__item:last-child span {
    color: #97a8be;
}

.right-content .navbar .left .el-breadcrumb .el-breadcrumb__item span {
    font-weight: normal;
}

/* 顶部导航 */
.right-content .navbar {
    height: 45px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
}

.right-content .navbar .left {
    height: 45px;
    line-height: 45px;
    vertical-align: middle;
    color: var(--el-text-color-regular);
    font-size: var(--el-font-size-base);
}

.right-content .navbar .left .icon {
    cursor: pointer;
    position: relative;
    top: 2px;
}

.right-content .navbar .left .menu {
    font-size: 13px;
}

.right-content .navbar .left .menu .dropdown {
    margin-top: 0px;
    padding-left: 10px;
    cursor: pointer;
}

.right-content .navbar .info {
    width: 450px;
    line-height: 50px;
    height: 50px;
    text-align: right;
    vertical-align: middle;
    padding: 0px 25px;
}

.right-content .navbar .info .bell {
    cursor: pointer;
    width: 50px !important;
}

.right-content .navbar .info .item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    width: 34px;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    line-height: 26px;
}

.right-content .navbar .info .bell .item {
    height: 21px;
    position: relative;
    width: 25px;
}

.right-content .navbar .info .bell .item .el-icon {
    /* position: absolute;
    right: 0px;
    top: 0px; */
}

.right-content .navbar .info span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-content .navbar .info .name {
    height: 18px;
}

.right-content .navbar .info .fullscreen {
    cursor: pointer;
}


/* 核心内容区域 */
.app-main {
    padding: 10px;
    flex: 1;
    height: 100%;
    width: 100%;
    /* background-color: rgb(242,243,245); */
    background-color: #fff;
    box-sizing: border-box;
    overflow: hidden;
}


/* 设置按钮 */
.setting-icon {
    cursor: pointer;
}

.setting-icon span {
  position: fixed;
  z-index: 10;
  right: 0;
  top: calc(50% + 250px);
  width: 50px;
  height: 50px;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  font-size: 24px;
  color: #fff;
  background-color: var(--el-color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* 下拉自定义样式：收藏下拉 */
.star-action-popper {
    width: 300px;
}

.star-action-popper .top {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    font-weight: 700;
}

.star-action-popper .top .text {
    justify-items: left;
}
.star-action-popper .top .icon {
    text-align: right;
    cursor: pointer;
}

.star-action-popper .empty-box {
    display: flex;
    flex-direction: column;
    text-align: center;
    color: var(--el-text-color-disabled);
}

.star-action-popper .star-list {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}


.star-action-popper .star-list .tag {
    width: 40%;
    display: flex;
    justify-content: space-around;
    cursor: pointer;
    align-items: center;
    height: 32px;
    line-height: 1;
    vertical-align: middle;
    margin-bottom: 10px;
}

.star-action-popper .star-list .tag .el-tag__content {
    display: flex;
}

.sub-title-withlogo {
    display: flex;
    height: 50px;
    width: 100%;
    padding: 0px 10px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background-color: #222B45;
    color: white;
}

.sub-title-withlogo img {
    height: 30px;
    width: 30px;
}

.sub-title-withlogo>div:last-child {
    flex: 1;
    padding: 0px 10px;
    text-overflow: ellipsis;
    overflow: hidden;
}

.sub-title-withlogo>div:last-child .web-name {
    text-wrap: nowrap;
    text-overflow: ellipsis;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}


.el-tag.is-closable.el-tag--info.el-tag--dark.tag {
    background-color: transparent;
    border: none;
    color: #323232;
    text-align: left;
}


.tag-action-popper .el-tag.is-closable.el-tag--dark.tag {
    justify-content: space-between;
}

.tag-action-popper .el-dropdown-menu li[tabindex='0'] .el-tag.is-closable.el-tag--info .el-icon.el-tag__close {
    background-color: gray;

}

/* 选中class: el-tag is-closable el-tag--dark tag */
/* 不选中：el-tag is-closable el-tag--info el-tag--dark tag */

/* .tag-action-popper .el-icon.el-tag__close {
    background-color: gray;
} */